/*
 * 标准交易
 * <p>名称（中文）：新交易下单接口<br />名称（英文，xx.war）：opr-hessian.war<br />简介：合单支付下单与标准收款内部下单接口合并<br />wiki文档地址：http://wiki.yeepay.com/pages/viewpage.action?pageId=122095805(4.新api分组相关接口规划)<br />预计项目上线时间：2020年6月9日<br />归属/拟申请的sp编码（可选）：opr<br />期望api分组编码、名称（可选）：trade(标准交易)<br />涉及的接口：申请下单、订单查询、申请退款、退款查询</p>
 *
 * OpenAPI spec version: 1.0
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.hyt.it.ogt.kq.service.bm.model.dto.pay;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.ObjectUtils;

import java.io.Serializable;

/**
 * RefundQueryYpPromotionRefundInfoDTOResult
 */
public class RefundQueryYpPromotionRefundInfoDTOResult implements Serializable{

  private static final long serialVersionUID = 1L;

  /**
   * 活动编号
   */
  @JsonProperty("marketNo")
  private String marketNo = null;

  /**
   * 活动退回金额
   */
  @JsonProperty("ypRefundAmount")
  private String ypRefundAmount = null;

  /**
   * 自定义营销活动类型
   */
  @JsonProperty("type")
  private String type = null;

  public RefundQueryYpPromotionRefundInfoDTOResult marketNo(String marketNo) {
    this.marketNo = marketNo;
    return this;
  }

   /**
   * 活动编号
   * @return marketNo
  **/

  public String getMarketNo() {
    return marketNo;
  }

  public void setMarketNo(String marketNo) {
    this.marketNo = marketNo;
  }

  public RefundQueryYpPromotionRefundInfoDTOResult ypRefundAmount(String ypRefundAmount) {
    this.ypRefundAmount = ypRefundAmount;
    return this;
  }

   /**
   * 活动退回金额
   * @return ypRefundAmount
  **/

  public String getYpRefundAmount() {
    return ypRefundAmount;
  }

  public void setYpRefundAmount(String ypRefundAmount) {
    this.ypRefundAmount = ypRefundAmount;
  }

  public RefundQueryYpPromotionRefundInfoDTOResult type(String type) {
    this.type = type;
    return this;
  }

   /**
   * 自定义营销活动类型
   * @return type
  **/

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }


  @Override
  public boolean equals(Object o) {
  if (this == o) {
    return true;
  }
  if (o == null || getClass() != o.getClass()) {
    return false;
  }
    RefundQueryYpPromotionRefundInfoDTOResult refundQueryYpPromotionRefundInfoDTOResult = (RefundQueryYpPromotionRefundInfoDTOResult) o;
    return ObjectUtils.equals(this.marketNo, refundQueryYpPromotionRefundInfoDTOResult.marketNo) &&
    ObjectUtils.equals(this.ypRefundAmount, refundQueryYpPromotionRefundInfoDTOResult.ypRefundAmount) &&
    ObjectUtils.equals(this.type, refundQueryYpPromotionRefundInfoDTOResult.type);
  }

  @Override
  public int hashCode() {
    return ObjectUtils.hashCodeMulti(marketNo, ypRefundAmount, type);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class RefundQueryYpPromotionRefundInfoDTOResult {\n");

    sb.append("    marketNo: ").append(toIndentedString(marketNo)).append("\n");
    sb.append("    ypRefundAmount: ").append(toIndentedString(ypRefundAmount)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

